<script>
// import Common from "@/mixins/order/commonbg.js";
import Common from "@/mixins/order/common.js";
import OrderService from "@/api/order/OrderService.js";
import PPMForm from "@/crm3.0part7-ppm/core/ppmForm.vue";
export default {
  name: "ckj11616",
  mixins: [PPMForm, Common],
  data() {
    return {};
  },
  async mounted() {
    this.init();
  },
  created() {
    // this.init();
  },
  computed: {},
  methods: {
    //初始化
    init() {
      this.formData["4447-141000051"].disabled = true;
      this.formData["9281-100012749"].disabled = true;

      var cacheInfo = JSON.parse(localStorage.getItem("cacheInfo"));
      
      //节点名称
      this.formData["4447-141000044"].value = cacheInfo.nodeName;

      //填报期限
      this.formData["4447-100012611"].value = cacheInfo.taskReqDate;

      //填报日期
      this.formData["4447-100012440"].value = this.$util.dateFormat(
        new Date(),
        "yyyy-MM-dd"
      );
      //填报人
      this.formData["4447-100012377"].value = cacheInfo.staffName;

      //联系电话
      this.formData["4447-141000045"].value = cacheInfo.linkTel;
    },

    source() {
      //中国侧半电路资源
      if (this.formData["4447-100013718"].value == "9005001") {
        this.formData["4447-141000051"].text = "具备";
        this.formData["4447-141000051"].value = "9005001";
        // this.formData["4444-141000051"].disabled = true;
      }
      if (this.formData["4447-100013718"].value == "9005002") {
        this.formData["4447-141000051"].text = "不具备";
        this.formData["4447-141000051"].value = "9005002";
        this.formData["4447-141000051"].disabled = true;
      }
    },

    //电路等级
    //电路维护等级具备修改为不可编辑
    range() {
      if (this.formData["9281-100012783"].value == "9005001") {
        
        this.formData["9281-100012749"].disabled = true;
        
      }
      if (this.formData["9281-100012783"].value == "9005002") {
        
        this.formData["9281-100012749"].disabled = false;
        
      }
    },
  },
};
</script>

